Skip to content

Conversation

@marjisound
Copy link
Contributor

@marjisound marjisound commented Dec 8, 2025

What does this change?

This PR adds a new component Lineups. In upcoming PRs this component will be placed within another component MatchInfo which holds other information about a match. The final aim is to use the MatchInfo component on match info and match report pages.

NOTE

Currently the team colors are retrieved dynamically from the data. As you can see, sometimes the colours might not have a good contrast. There is going to be an upcoming PR with a solution to fix the colour contrast.

Why?

Migrating/re-desiging the football match pages for both apps/web

Screenshots

Light mode Dark mode
before after

This PR fixes part of #14904

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@marjisound marjisound requested a review from a team December 8, 2025 12:34
@marjisound marjisound self-assigned this Dec 8, 2025
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

@marjisound marjisound added run_chromatic Runs chromatic when label is applied feature Departmental tracking: work on a new feature labels Dec 8, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Dec 8, 2025
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

corners: 10,
fouls: 4,
colours: '#ffffff',
colours: '#01009a',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this temporarily until we fix the colour contrast

@marjisound marjisound force-pushed the football-match-info branch 2 times, most recently from 8f3df12 to 6e67ba0 Compare December 10, 2025 10:28
return (
<ul css={isHome ? homeStyles : awayStyles}>
{team.players
.filter((player) => player.substitute === isSubstitute)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we filtering the substitutes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are 2 different sections one for lineups (Players who are not substitutes) and the other for substitutes. So because the PlayerList is used for both of them, here we're checking if the component is to be used for the lineups section or the substitute section (depending the value of isSubstitute)

Copy link
Contributor

@ioannakok ioannakok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@marjisound marjisound added the run_chromatic Runs chromatic when label is applied label Dec 12, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Dec 12, 2025
@marjisound marjisound merged commit fc806f3 into main Dec 12, 2025
28 checks passed
@marjisound marjisound deleted the football-match-info branch December 12, 2025 09:53
@gu-prout
Copy link

gu-prout bot commented Dec 12, 2025

Seen on PROD (merged by @marjisound 9 minutes and 8 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants